#ifndef MUCMAS_USER_INC_OLED_H
#define MUCMAS_USER_INC_OLED_H

#include "stm32f1xx_hal.h"


extern uint8_t turn;
extern I2C_HandleTypeDef  hi2c1;
void Oled_Init(void);
void Oled_ClearAll(void);
void Oled_Display_On(void);
void Oled_Display_Off(void);
void Oled_Set_Pos(uint8_t x, uint8_t y);
void Oled_On(void);
void Oled_ShowCharSmall(uint8_t x, uint8_t y, uint8_t chr);
void Oled_ShowCharBig(uint8_t x, uint8_t y, uint8_t chr);
void Oled_ShowStringSmall(uint8_t x, uint8_t y, const char *chr);
void Oled_ShowStringBig(uint8_t x, uint8_t y, const char *chr);
void Oled_ShowNumSmall(uint8_t x, uint8_t y, uint16_t num, uint8_t len);
void Oled_ShowChinese(uint8_t x,uint8_t y,uint8_t idx);
void Oled_DrawBMP(uint8_t x0, uint8_t y0, uint8_t x1, uint8_t y1, uint8_t *  BMP);
void Oled_IntensityControl(uint8_t intensity);


#endif
